<?php if (!defined('THINK_PATH')) exit();?>	<?php
 $config = D('Basic')->select(); ?>	
<?php
 $navs = D('Menu')->homebars(); ?>
<?php
 $links = D('Links')->linksForHome(); ?>

<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
	<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title><?php echo ($config["title"]); ?></title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="<?php echo ($config["description"]); ?>" />
	<meta name="keywords" content="<?php echo ($config["keywords"]); ?>" />
	<!--<link href="https://fonts.googleapis.com/css?family=Raleway:200,300,400,700" rel="stylesheet">-->
	
	<!-- Animate.css -->
	<link rel="stylesheet" href="/Public/css/home/animate.css">
	<!-- Icomoon Icon Fonts-->
	<link rel="stylesheet" href="/Public/assets/css/font-awesome.min.css">
	<!-- Bootstrap  -->
	<link rel="stylesheet" href="/Public/css/bootstrap.css">
	<!-- Flexslider  -->
	<link rel="stylesheet" href="/Public/css/home/flexslider.css">
	<!-- Owl Carousel  -->
	<link rel="stylesheet" href="/Public/css/home/owl.carousel.min.css">
	<link rel="stylesheet" href="/Public/css/home/owl.theme.default.min.css">
	<!-- Theme style  -->
	<link rel="stylesheet" href="/Public/css/home/style.css">
	<!-- Modernizr JS -->
	
	
	<!--music-->
	
	<script src="/Public/js/home/modernizr-2.6.2.min.js"></script>
	<!-- FOR IE9 below -->
	<!--[if lt IE 9]>
	<script src="/Public/js/home/respond.min.js"></script>
	<![endif]-->
	<!--loading-->
	<style type="text/css">
		.sk-double-bounce {
		  width: 40px;
		  height: 40px;
		  position: relative;
		  margin: 40px auto; }
		  .sk-double-bounce .sk-child {
		    width: 100%;
		    height: 100%;
		    border-radius: 50%;
		    background-color: #27E1CE;
		    opacity: 0.6;
		    position: absolute;
		    top: 0;
		    left: 0;
		    -webkit-animation: sk-doubleBounce 2s infinite ease-in-out;
		            animation: sk-doubleBounce 2s infinite ease-in-out; }
		  .sk-double-bounce .sk-double-bounce2 {
		    -webkit-animation-delay: -1.0s;
		            animation-delay: -1.0s; }
		
		@-webkit-keyframes sk-doubleBounce {
		  0%, 100% {
		    -webkit-transform: scale(0);
		            transform: scale(0); }
		  50% {
		    -webkit-transform: scale(1);
		            transform: scale(1); } }
		
		@keyframes sk-doubleBounce {
		  0%, 100% {
		    -webkit-transform: scale(0);
		            transform: scale(0); }
		  50% {
		    -webkit-transform: scale(1);
		            transform: scale(1); } }
	</style>

	</head>
	<body>
	<div id="reloade">
		<div class="sk-double-bounce">
	        <div class="sk-child sk-double-bounce1"></div>
	        <div class="sk-child sk-double-bounce2"></div>
	    </div>
	</div>
	
	<div id="fh5co-page">
	<header id="fh5co-header" role="banner">
				<a href="/"><img class="hidden-xs" style="position: absolute;top: 10px; left: 20px;" src="../../../../Public/images/logo.png" width="180px"height="60px"/></a>
		<div class="container">
			<div class="header-inner">
				<h1 class="visible-xs-block"><a href="/">ISG</a></h1>
				<nav role="navigation">
					<ul>
						<li><a href="/" >首页</a></li>
						<?php if(is_array($navs)): foreach($navs as $key=>$nav): ?><li <?php if($nav['menu_id'] == $catid): ?>class="active"<?php endif; ?> ><a href="/index.php?c=cat&id=<?php echo ($nav["menu_id"]); ?>"><?php echo ($nav["name"]); ?></a></li><?php endforeach; endif; ?>
						<li><a href="/index.php?c=mood&a=index" >心晴</a></li>
						<li class="cta"><a href="/index.php?c=GuestBook&a=index">水一发</a></li>
					</ul>
				</nav>
			</div>
		</div>
	</header>

	
	
	
		<div class="col-md-12 cs_daohangqi hidden-xs">
			<span><a href="/index.php?c=cat&id=<?php echo ($news["catid"]); ?>"><?php echo (getCatName($webSiteMenu,$news["catid"])); ?></a></span><span style="margin-left: 20px; margin-right: 20px;"><i class="fa  fa-forward"></i> </span> <span><?php echo ($news["title"]); ?></span>
		</div>
	<!--文章详情-->
	<div id="cs_container" class="container" style="margin-left: auto; margin-right: auto;">
		<div id="news_detail" class="col-md-8 cs_detail">
			<div class="cs_info_box">
				<h1 class="cs_detail_title"><?php echo ($news["title"]); ?></h1>
				<span class="fa fa-clock-o cs_detail_time hidden-xs"><?php echo (date("Y-m-d H:i",$news["create_time"])); ?></span><span class="fa fa-user cs_detail_auth"><?php echo ($news["username"]); ?></span><span class="fa fa-eye cs_detail_read"><?php echo ($news["count"]); ?></span><!--<span class="fa fa-comments cs_detail_pinlun">评论</span>-->
			</div>
			<div class="cs_content">
				<?php echo ($news["content"]); ?>
			</div>
			<div class="cs_content_bottom">
				<!-- 畅言评论 -->
				<!--PC和WAP自适应版-->
					<div id="SOHUCS" sid="<?php echo ($news["news_id"]); ?>" ></div> 
					<script type="text/javascript"> 
					(function(){ 
					var appid = 'cyt5ywgl9'; 
					var conf = 'prod_985a8f3ab46054ba1e14e31de201e870'; 
					var width = window.innerWidth || document.documentElement.clientWidth; 
					if (width < 960) { 
					window.document.write('<script id="changyan_mobile_js" charset="utf-8" type="text/javascript" src="http://changyan.sohu.com/upload/mobile/wap-js/changyan_mobile.js?client_id=' + appid + '&conf=' + conf + '"><\/script>'); } else { var loadJs=function(d,a){var c=document.getElementsByTagName("head")[0]||document.head||document.documentElement;var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("charset","UTF-8");b.setAttribute("src",d);if(typeof a==="function"){if(window.attachEvent){b.onreadystatechange=function(){var e=b.readyState;if(e==="loaded"||e==="complete"){b.onreadystatechange=null;a()}}}else{b.onload=a}}c.appendChild(b)};loadJs("http://changyan.sohu.com/upload/changyan.js",function(){window.changyan.api.config({appid:appid,conf:conf})}); } })(); </script>
				<!-- 畅言评论 -->
				
			</div>
			
		</div>
		<div id="cs_side_right" class="col-md-4 hidden-xs cs_side" style="color: #fff; background-color: #777;text-align: center;">
			最新文章
		</div>
		<div class="cs_rank_list col-md-4 hidden-xs" >
			<script type="text/javascript">
				console.log(<?php echo ($newslist); ?>)
			</script>
			<ul>
			<?php if(is_array($newslist)): foreach($newslist as $key=>$vo): ?><li>
					<a href="/index.php?c=detail&id=<?php echo ($vo["news_id"]); ?>">
								<p class=""><img class="cs_rank_thumb" src="<?php echo ($vo["thumb"]); ?>"/><?php echo ($vo["title"]); ?></p>
					</a>
				</li><?php endforeach; endif; ?>	
			</ul>
			
		</div>
		
	</div>	
	<!--文章详情end-->

	
		
	<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
	<script type="text/javascript">
	// var duoshuoQuery = {short_name:"isuoge"};
	// 	(function() {
	// 		var ds = document.createElement('script');
	// 		ds.type = 'text/javascript';ds.async = true;
	// 		ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
	// 		ds.charset = 'UTF-8';
	// 		(document.getElementsByTagName('head')[0] 
	// 		 || document.getElementsByTagName('body')[0]).appendChild(ds);
	// 	})();
	 </script>
	<!-- 多说公共JS代码 end -->
	
    
	
	<!--透明背景窗口 -->
	<div class="fh5co-cta" style="background-image: url(/Public/images/slide_2.jpg);">
		<div class="overlay"></div>
		<div class="container">
			<div class="col-md-12 text-center animate-box">
				<h3>每一次阅读都是灵魂的远足</h3>
				<p><a href="#" class="btn btn-primary btn-outline with-arrow">Get started now! <i class="fa fa-arrow-right"></i></a></p>
			</div>
		</div>
	</div>
	<!--透明背景窗口end -->
	
	<!--底部内容-->
	<script src="/Public/js/jquery-1.11.0.js"></script>
	
	
	
	
	
	<footer id="fh5co-footer" role="contentinfo">
		
		<div class="container">
			<div class="col-md-3 col-sm-12 col-sm-push-0 col-xs-12 col-xs-push-0">
				<h3>关于</h3>
				<p><?php echo ($config["about"]); ?></p>
				<p><a href="#" class="btn btn-primary btn-outline with-arrow btn-sm">来吹比？ <i class="fa fa-arrow-right"></i></a></p>
			</div>
			<div class="col-md-6 col-md-push-1 col-sm-12 col-sm-push-0 col-xs-12 col-xs-push-0">
				<h3>友情链接</h3>
				<ul class="float">
					
					<?php if(is_array($links)): $i = 0; $__LIST__ = $links;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$links): $mod = ($i % 2 );++$i;?><li><a target="_blank" href="http://<?php echo ($links["url"]); ?>"><?php echo ($links["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
					
				</ul>
				
				
			</div>

			<div class="col-md-2 col-md-push-1 col-sm-12 col-sm-push-0 col-xs-12 col-xs-push-0">
				<h3>Follow Me</h3>
				<ul class="fh5co-social">
					<li><a target="_blank" href="https://github.com/isuoge"><i class="fa fa-github"></i>isuoge</a></li>
					<li><a target="_blank" href="http://weibo.com/5770656991/"><i class="fa fa-weibo"></i>isuoge-com</a></li>
					<li><a href="/index.php?c=GuestBook&a=index"><i class="fa fa-envelope-o"></i>水墙找</a></li>
					<li><a href="#"><i class="fa fa-heart-o"></i></a></li>
				</ul>
			</div>
			
			
			<div class="col-md-12 fh5co-copyright text-center">
				<p>&copy; 2016 isuoge.com All Rights Reserved. <span>Designed  <i class="fa fa-cloud"></i> by <a href="#/" target="_blank">isuoge</a></span></p>	
			</div>
			
		</div>
	</footer>
	</div>
	
	<!-- jQuery -->
	<script src="/Public/js/jquery-1.11.0.js"></script>
	<!-- jQuery Easing -->
	<script src="/Public/js/home/jquery.easing.1.3.js"></script>
	<!-- Bootstrap -->
	<script src="/Public/js/bootstrap.min.js"></script>
	<!-- Waypoints -->
	<script src="/Public/js/home/jquery.waypoints.min.js"></script>
	<!-- Owl Carousel -->
	<script src="/Public/js/home/owl.carousel.min.js"></script>
	<!-- Flexslider -->
	<script src="/Public/js/home/jquery.flexslider-min.js"></script>

	<!-- MAIN JS -->
	<script src="/Public/js/home/main.js"></script>
	<script src="/Public/js/home/jquery.grid-a-licious.min.js" type="text/javascript" charset="utf-8"></script>
	
	
	
	
	
	</body>
</html>